<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    function Car(uname, year) {
      this.sign = uname
      this.year = year

    }
    const b = new Car('奔驰', 1997)
    const m = new Car('宝马', 2003)
    console.log(b, m);
    //练习
    function Goods(name, price, count) {
      this.name = name
      this.price = price
      this.count = count
    }
    const mi = new Goods('小米', 1999, 20)
    const hw = new Goods('华为', 1999, 20)
    const vi = new Goods('vivo', 1999, 20)
    console.log(mi, hw, vi);
  </script>
</body>

</html>